﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WxStockWinSvc.Models.Enums;

namespace WxStockWinSvc.Models.Entities
{
    public class ScheduleStockEntity
    {
        public string StockCode { get; set; }
        public string ExchangeCode { get; set; }
        public DateTime Date { get; set; }
        public DateTime StartTime { get { return Date.AddDays(1); } }

        public DateTime EndTime { get { return DateTime.Now; } }

        public ScheduleStockEntity()
        {
            Date = DateTime.MaxValue;

            StockCode
            = ExchangeCode
            = string.Empty;
        }
    }
}
